google.load('visualization', '1.0', {'packages':['corechart']}); google.setOnLoadCallback(function(){ var data = new google.visualization.DataTable(); data.addColumn('string', '日'); data.addColumn('number', 'DL数'); data.addColumn('number', 'Googleセルラン'); data.addColumn('number', 'iOSセルラン'); data.addColumn({type:'string', role:'annotation'}); data.addColumn({type:'string', role:'annotationText'}); data.addRows([ ['2024-03-04',17464042,null,null,null,null], ['2024-03-05',17486487,null,null,null,null], ['2024-03-06',17494446,null,null,null,null], ['2024-03-07',17502720,null,null,null,null], ['2024-03-08',17514842,null,null,null,null], ['2024-03-09',17517505,null,null,null,null], ['2024-03-10',17526298,null,null,null,null], ['2024-03-11',17539010,null,null,null,null], ['2024-03-12',17553714,null,null,null,null], ['2024-03-13',17567737,null,null,null,null], ['2024-03-14',17575383,null,null,null,null], ['2024-03-15',17582618,null,null,null,null], ['2024-03-16',17582618,null,null,null,null], ['2024-03-17',17588147,null,null,null,null], ['2024-03-18',17600803,null,null,null,null], ['2024-03-19',17615340,null,null,null,null], ['2024-03-20',17622276,null,null,null,null], ['2024-03-21',17632069,null,null,null,null], ['2024-03-22',17638279,null,null,null,null], ['2024-03-23',17648994,null,null,null,null], ['2024-03-24',17648994,null,null,null,null], ['2024-03-25',17660061,null,null,null,null], ['2024-03-26',17671919,null,null,null,null], ['2024-03-27',17679452,null,null,null,null], ['2024-03-28',17682325,null,null,null,null], ['2024-03-29',17700091,null,null,null,null], ['2024-03-30',17707795,null,null,null,null], ['2024-03-31',17707795,null,null,null,null], ['2024-04-01',17728410,null,null,null,null], ['2024-04-02',17728410,null,null,null,null], ['2024-04-03',17728410,null,null,null,null], ['2024-04-04',17746257,null,null,null,null], ['2024-04-05',17746257,null,null,null,null], ['2024-04-06',17755529,null,null,null,null], ['2024-04-07',17763407,null,null,null,null], ['2024-04-08',17770683,null,null,null,null], ['2024-04-09',17785093,null,null,null,null], ['2024-04-10',17793148,null,null,null,null], ['2024-04-11',17801555,null,null,null,null], ['2024-04-12',17805156,null,null,null,null], ['2024-04-13',17814167,null,null,null,null], ['2024-04-14',17821160,null,null,null,null], ['2024-04-15',17829986,null,null,null,null], ['2024-04-16',17839774,null,null,null,null], ['2024-04-17',17847547,null,null,null,null], ['2024-04-18',17850783,null,null,null,null], ['2024-04-19',17858165,null,null,null,null], ['2024-04-20',17863359,null,null,null,null], ['2024-04-21',17887062,null,null,null,null], ['2024-04-22',17894349,null,null,null,null], ['2024-04-23',17908720,null,null,null,null], ['2024-04-24',17913501,null,null,null,null], ['2024-04-25',17913501,null,null,null,null], ['2024-04-26',17924361,null,null,null,null], ['2024-04-27',17930435,null,null,null,null], ['2024-04-28',17939097,null,null,null,null], ['2024-04-29',17947515,null,null,null,null], ['2024-04-30',17947515,null,null,null,null], ['2024-05-01',17964902,null,null,null,null], ['2024-05-02',17980096,null,null,null,null], ['2024-05-03',17986116,null,null,null,null] ]); var options = { chartArea: {'width':'85%', 'height':'65%', 'left':60 }, 'pointSize': 3, legend: {position: 'top' }, vAxes:[ {direction:1}, {direction:-1,viewWindow:{min:0,max:0}} ], series: { 0:{ type: 'bars', color: 'skyblue', targetAxisIndex: 0, }, 1:{ type: 'line', color: 'seagreen', targetAxisIndex: 1, }, 2:{ type: 'line', color: 'red', targetAxisIndex: 1, }, }, tooltip: { trigger: 'both' }, focusTarget: 'category', colors:['#2980b9','#e74c3c'] }; var chart = new google.visualization.ComboChart(document.getElementById('graphField')); chart.draw(data, options); google.visualization.events.addListener(chart, 'click', function() { if(chart.getSelection()[0]){ chart.setSelection(null) } }); });